﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Perovich.GameObjects.Attributes
{
    public delegate void AutomaticFunctionGenerator(string me, object caller);

    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public class AutomaticFunctionAttribute : Attribute
    {
        Type type;
        private string method;

        public string Method
        {
            get { return method; }
        }
        public Type Type
        {
            get { return type; }
        }

        public AutomaticFunctionAttribute(Type type, string method)
        {
            this.type = type;
            this.method = method;
        }
    }
}
